﻿<%@ page language="C#" masterpagefile="~/Default.master" autoeventwireup="true" inherits="questiond, App_Web_questiond.aspx.cdcab7d2" title="Patient CRM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="width: 100%;" class="box">
        <div class="topleft">
            <div class="topright">
                <div class="innerright">
                    <h4><asp:Localize ID="lTitle" meta:resourcekey="resTitle" runat="server" />  </h4>
                </div>
                <div class="innerleft">
                    <h4>
                       <asp:Localize ID="lLinksTitle" meta:resourcekey="resLinksTitle" runat="server" />
                    </h4>
                </div>
                <div class="r">
                </div>
            </div>
        </div>
        <div class="mid">
            <div class="innerleft">
                <div>
                    <a href="Default.aspx">
                        <asp:Localize ID="lLinks1" meta:resourcekey="resLinks1" runat="server" />    
                    </a>
                    -
                    <a href="PatientInfo.aspx?action=new">
                        <asp:Localize ID="lLinks2" meta:resourcekey="resLinks2" runat="server" />    
                    </a>
                </div>
            </div>
            <div class="innerright">
                <div></div>
            </div>
            <div class="r">
            </div>
        </div>
        <div class="bottomleft">
            <div class="bottomright">
            </div>
        </div>
    </div>
    
    
    <div class="s"></div>
    
    <div>
        <div style="padding:0 5px;" class="side-lang">
            <asp:TextBox ID="txtQuestionType" Width="200" CssClass="langDir" runat="server" />
        </div>
     
        <div class="cssButtonSize-smallest cssButtonSide-lang">
            <div class="cssButton cssButtonColor-orange">
                <div class="cssButtonOuter">
                    <div class="cssButtonMiddle">
                        <div class="cssButtonInner">
                            <asp:Button ID="btnSave" runat="server" meta:resourcekey="resBtnQuestionTypeSave"
                                onclick="btnSave_Click" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
   </div>
   
   <div class="s"></div>
   
   
   <div class="langDir">
       <div style="padding:0 8px;" class="side-lang">
           <asp:DropDownList ID="ddlQuestionTypes" Width="200" DataValueField="Id" 
           DataTextField="Description" AutoPostBack="true" AppendDataBoundItems="true" runat="server" 
           onselectedindexchanged="ddlQuestionTypes_SelectedIndexChanged">
           </asp:DropDownList>
       </div>

       <div class="cssButtonSize-smallest cssButtonSide-lang">
           <div class="cssButton cssButtonColor-blue">
               <div class="cssButtonOuter">
                   <div class="cssButtonMiddle">
                       <div class="cssButtonInner">
                            <asp:Button ID="lbDeleteQuestionType"   
                                        runat="server" meta:resourcekey="resBtnQuestionTypeDelete" 
                                        onclick="lbDeleteQuestionType_Click" />
                       </div>
                   </div>
               </div>
           </div>
       </div>
   </div>
   
   <div class="s">
    </div>
    
    <div id="divQuestionArea" runat="server">
    
        <div class="langDir">
        
            <div style="padding:0 5px;" class="side-lang">
                <asp:TextBox ID="txtQuestion" Width="450" runat="server" />
            </div>
            
            <div class="cssButtonSize-smallest cssButtonSide-lang">
                <div class="cssButton cssButtonColor-orange">
                    <div class="cssButtonOuter">
                        <div class="cssButtonMiddle">
                            <div class="cssButtonInner">
                                <asp:Button ID="btnSaveQuestion" runat="server" meta:resourcekey="resBtnCreateQuestion" 
                                    onclick="btnSaveQuestion_Click" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        
        </div>
       
        <div class="s">
        </div>
       
        <div class="langDir">
            <asp:GridView ID="gvQuestions" runat="server"
                AutoGenerateColumns="false" PagerSettings-Visible="false" AllowPaging="false" DataKeyNames="Id" OnRowDeleting="gvQuestions_RowDeleting" OnRowDataBound="gvQuestions_RowDataBound">
                
                <Columns>
                    <asp:BoundField DataField="QuestionDesc" ItemStyle-HorizontalAlign="Right" meta:resourcekey="resQuestionList" />
                    <asp:TemplateField>
                        <itemtemplate>
                            <asp:LinkButton ID="lbDeleteQuestion" runat="server" CausesValidation="False" CommandName="Delete">
                                <img src="img/delete.gif" alt="" style="border:0;" />
                            </asp:LinkButton>
                        </itemtemplate>
                    </asp:TemplateField>
                </Columns>
                
            </asp:GridView>
        </div>
    </div>
   
</asp:Content>

